package lu.med.praxiswahl.wahlumed.client.arztbriefe;

public class ArztbriefThread extends Thread
{
    private boolean exitThis = false;
    private ArztbriefPanel owner;

    public ArztbriefThread(ArztbriefPanel owner)
    {
	this.owner = owner;
	this.start();
    }

    @Override
    public void run()
    {
	while (!exitThis)
	{
	    try
	    {
		Thread.sleep(100);
	    }
	    catch (InterruptedException e)
	    {
	    }
	}
	owner.executePrint();
    }

    public void setExitThis()
    {
	exitThis = true;
    }

}
